<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header">

</head>
<link rel="stylesheet" th:href="@{/css/bootstrap.css}">
<link rel="stylesheet" th:href="@{/css/bootstrap-theme.css}">
<link rel="stylesheet" th:href="@{/css/game.css}">
<body>
<nav th:replace="layouts::navbar"></nav>
    <div class="container">
        <form th:action="@{/games/save}" th:object="${game}" method="POST">
         <input type="text" placeholder="游戏名称" th:field="${game.name}">
         <textarea type="text" placeholder="输入游戏类型描述" th:field="${game.description}"></textarea>

            <select th:field="*{players}" multiple="multiple">
                <option th:each="player : ${allPlayers}" th:value="${player.playerId}" th:text="${player.name}"></option>
            </select>



            <button type="submit">新增游戏</button>
        </form>
    </div>
<script src="../../js/bootstrap.min.js" type="text/javascript"></script>
<script src="../../js/demo.js" type="text/javascript"></script>
</body>
</html>